class CreateUserGroups < ActiveRecord::Migration
	
	def self.up		
		create_table :user_groups do |t|
			t.string :name, null: false
			t.string :created_by, null: false
			t.string :updated_by

			t.timestamps
		end

		add_index :user_groups, :name, unique: true
		
		UserGroup.create_translation_table! description: :text
	end
	
	def self.down
		UserGroup.drop_translation_table!
		drop_table :user_groups
	end
	
end
